package com.haier.npt.sso.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * @Description:TODO 
 * @author: lixu
 * @date:   2018年7月12日 下午4:46:46   
 */
@TableName("haier_user")
public class HaierUser extends Model<HaierUser>   {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 自增
     */
	private Long id;
    /**
     * 用户名  唯一
     */
	@TableField("user_name")
	private String userName;
    /**
     * 密码
     */
	private String password;
    /**
     * 邮箱 唯一
     */
	private String email;
    /**
     * 显示名称
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 手机
     */
	private String mobile;
    /**
     * 盐值，用于密码加密
     */
	private String salt;
    /**
     * 管理员内置 1 为是 0为否
     */
	private Boolean system;
    /**
     * Datetime	创建日期
     */
	private Date createdate;
    /**
     * 用户类型
     */
	@TableField("user_type")
	private Integer userType;
    /**
     * 扩展信息
     */
	@TableField("ext_user_data")
	private String extUserData;
    /**
     * 上次登录时间
     */
	@TableField("last_login_date")
	private Date lastLoginDate;
    /**
     * 联系人
     */
	private String contact;
    /**
     * 详细地址
     */
	private String addr;
    /**
     * 性别 1 男 0 女
     */
	private Boolean sex;
    /**
     * 生日
     */
	private Date birthday;
	@TableField("access_token")
	
	private String accessToken;
	
	@TableField("registe_date")
	private Date registeDate;
	
	private String authorities;

	/**
	 * 用户名
	 */
	@TableField("name")
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Boolean getSystem() {
		return system;
	}

	public void setSystem(Boolean system) {
		this.system = system;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}


	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getExtUserData() {
		return extUserData;
	}

	public void setExtUserData(String extUserData) {
		this.extUserData = extUserData;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Date getRegisteDate() {
		return registeDate;
	}

	public void setRegisteDate(Date registeDate) {
		this.registeDate = registeDate;
	}

	public String getAuthorities() {
		return authorities;
	}

	public void setAuthorities(String authorities) {
		this.authorities = authorities;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Bim5dUser{" +
			"id=" + id +
			", userName=" + userName +
			", password=" + password +
			", email=" + email +
			", nickName=" + nickName +
			", mobile=" + mobile +
			", salt=" + salt +
			", system=" + system +
			", createdate=" + createdate +
			", userType=" + userType +
			", extUserData=" + extUserData +
			", lastLoginDate=" + lastLoginDate +
			", contact=" + contact +
			", addr=" + addr +
			", sex=" + sex +
			", birthday=" + birthday +
			", accessToken=" + accessToken +
			", registeDate=" + registeDate +
			", authorities=" + authorities +
			"}";
	}
}
